package com.qf.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.qf.mapper.DtsRegionMapper;
import com.qf.pojo.DtsRegion;
import com.qf.service.DtsRegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Zwnan
 */
@Service
public class DtsRegionServiceImpl implements DtsRegionService {

    @Autowired
    private DtsRegionMapper dtsRegionMapper;
    @Override
    public IPage<DtsRegion> findPage(Integer page, Integer limit) {
        IPage<DtsRegion> iPage = new Page<>(page,limit);


        return dtsRegionMapper.selectPage(iPage, new QueryWrapper<DtsRegion>());
    }
}
